package com.example.kotlin.scrollingtable

import android.content.Intent
import android.os.Bundle
import android.support.v7.app.AppCompatActivity
import android.view.View
import com.example.kotlin.scrollingtable.java_type1.JavaType1Activity
import com.example.kotlin.scrollingtable.java_type3.JavaType3Activity
import com.example.kotlin.scrollingtable.type1.Type1Activity
import com.example.kotlin.scrollingtable.type2.Type2Activity
import com.example.kotlin.scrollingtable.type3.Type3Activity
import com.example.kotlin.scrollingtable.type4.Type4Activity
import com.example.kotlin.scrollingtable.type5.Type5Activity
import com.example.kotlin.scrollingtable.type6.Type6Activity
import com.example.kotlin.scrollingtable.type7.Main2Activity

/**
 * 主入口
 * Created by xiaoyulaoshi on 2018/1/31.
 * https://github.com/MartinDong/ScrollingTable
 * https://blog.csdn.net/a8380381/article/details/84339206
 */

class MainActivity : AppCompatActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
    }

    fun java_jumpType1(view: View) {
        val intent = Intent(this, JavaType1Activity::class.java)
        startActivity(intent)
    }

    fun jumpType1(view: View) {
        val intent = Intent(this, Type1Activity::class.java)
        startActivity(intent)
    }

    fun jumpType2(view: View) {
        val intent = Intent(this, Type2Activity::class.java)
        startActivity(intent)
    }

    fun jumpType3(view: View) {
        val intent = Intent(this, Type3Activity::class.java)
        startActivity(intent)
    }

    fun jumpType4(view: View) {
        val intent = Intent(this, Type4Activity::class.java)
        startActivity(intent)
    }

    fun jumpType5(view: View) {
        val intent = Intent(this, Type5Activity::class.java)
        startActivity(intent)
    }

    fun jumpType6(view: View) {
        val intent = Intent(this, Type6Activity::class.java)
        startActivity(intent)
    }

    fun jumpType7(view: View) {
        val intent = Intent(this, Main2Activity::class.java)
        startActivity(intent)
    }

    fun Java_jumpType3(view: View) {
        val intent = Intent(this, JavaType3Activity::class.java)
        startActivity(intent)
    }
}
